home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Programming / MiniGL / Build.ppc / makefile < prev    next >
Encoding:
Makefile  |  2000-04-07  |  2.0 KB  |  87 lines

  1. #
  2. # $Id: makefile,v 1.1.1.1 2000/04/07 19:44:48 tfrieden Exp $
  3. #
  4. # $Date: 2000/04/07 19:44:48 $
  5. # $Revision: 1.1.1.1 $
  6. #
  7. # (C) 1999 by Hyperion
  8. # All rights reserved
  9. #
  10. # This file is part of the MiniGL library project
  11. # See the file Licence.txt for more details
  12. #
  13. #
  14.  
  15. VPATH = ../src/ ../demos
  16. INCLUDE = -I../include
  17. CFLAGS = $(INCLUDE) -mcpu=604e -mmultiple -D__PPC__ $(DEBUG)
  18. CFLAGS2= $(INCLUDE) -mcpu=604e -mmultiple -D__PPC__ $(DEBUG)
  19. DEBUG =
  20. LIBNAME = ../libppc/libmgl.a
  21. EXENAME = ../GLTest
  22.  
  23. DEMOS = ../bounce ../GLTest ../texsub ../gears ../smtest ../warp
  24.  
  25. CC = pgcc -V 2.95.2 -warpup -O3
  26.  
  27. AR = ppc-amigaos-ar
  28. RANLIB = ppc-amigaos-ranlib
  29.  
  30. LIBOBJ = matrix.o context.o vertexbuffer.o draw.o texture.o fog.o hclip.o others.o init.o glu.o
  31.  
  32. EXEOBJ = GLTest.o
  33.  
  34. all: $(LIBNAME) $(DEMOS)
  35.  
  36. install:
  37.     cp ../include/mgl/*.h /usr/os-includeppc/mgl
  38.     cp ../libppc/libmgl.a /usr/ppc-amigaos/lib
  39.  
  40. clean:
  41.     -rm *.o ../GLtest ../libppc/libmgl.a
  42.  
  43. %.o: %.c
  44.     $(CC) $(CFLAGS) -S $< -o $*.s
  45.     $(CC) $(CFLAGS) -c $*.s -o $*.o
  46.  
  47. lib: $(LIBNAME)
  48.     @echo "Done"
  49.  
  50. ../bounce: bounce.o init.o $(LIBNAME)
  51.     $(CC) -o bounce.elf bounce.o init.o -L../libppc -lmgl -lm -ldebug
  52.     elf2exe2 bounce.elf ../bounce
  53.  
  54. ../smtest: smtest.o init.o $(LIBNAME)
  55.     $(CC) -o smtest.elf smtest.o init.o -L../libppc -lmgl -lm -ldebug
  56.     elf2exe2 smtest.elf ../smtest
  57.  
  58. ../texsub: texsub.o init.o $(LIBNAME)
  59.     $(CC) -o texsub.elf texsub.o init.o -L../libppc -lmgl -lm -ldebug
  60.     elf2exe2 texsub.elf ../texsub
  61.  
  62. ../gears: gears.o init.o $(LIBNAME)
  63.     $(CC) -o gears.elf gears.o init.o -L../libppc -lmgl -lm -ldebug
  64.     elf2exe2 gears.elf ../gears
  65.  
  66. ../warp: warp.o init.o $(LIBNAME)
  67.     $(CC) -o warp.elf warp.o init.o -L../libppc -lmgl -lm -ldebug
  68.     elf2exe2 warp.elf ../warp
  69.  
  70. $(LIBNAME): $(LIBOBJ)
  71.     $(AR) rcs $(LIBNAME) $(LIBOBJ)
  72.  
  73. $(EXENAME): $(EXEOBJ) $(LIBNAME)
  74.     $(CC) -o temp.elf $(EXEOBJ) -L../libppc  -lmgl -lm -ldebug
  75.     elf2exe2 temp.elf $(EXENAME)
  76.  
  77. GLTest2.o: ../src/GLTest2.c
  78.     $(CC) $(CFLAGS2) -c ../src/GLTest2.c
  79.  
  80. GLTest2: GLTest2.o $(LIBNAME)
  81.     $(CC) -o ../GLTest2 gltest2.o -L../libppc -lmgl -lm -ldebug
  82.  
  83. depend:
  84.     makedepend $(INCLUDE) src/*.c
  85.  
  86.  
  87.